
using System;
using Cysharp.Threading.Tasks;
using UnityEngine;
namespace MiniAnimation
{
    public class ActionNode : SequenceNode
    {
        Action action;
        public ActionNode(Action action) : base()
        {
            this.action = action;
        }

        protected override async UniTask OnExcute()
        {
            action?.Invoke();
        }
    }
}
